package edu.nwpu.zya.coreops.modules.alert.dao;

import edu.nwpu.zya.coreops.modules.alert.entity.RuleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.nwpu.zya.coreops.modules.dashboard.entity.AlertCountEntity;
import edu.nwpu.zya.coreops.modules.monitor.entity.MetricEntity;
import edu.nwpu.zya.coreops.modules.resource.entity.EcsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-04-19 20:16:07
 */
@Mapper
public interface RuleDao extends BaseMapper<RuleEntity> {

    AlertCountEntity getAllAlertCount();

    AlertCountEntity getAlertCountByUserId(@Param("userId") Long userId);
}
